
public class Engine {
	InputManager	in;
	Renderer		out_v;
	SoundManager	out_a;
	
	Engine(int width, int height) {
		out_v = new Renderer(width, height);
		in = new InputManager();
		out_a = new SoundManager();
	}
	
	//============== Render ===================
	public void drawSprite(String name, int x, int y) {
		out_v.drawSprite(name, x, y);
	}
	public void render() {
		out_v.render();
	}
	
	//============== Audio ===================
	public void playSound(String name) {
		out_a.playSound(name);
	}
	
	//============== Input ===================
	public boolean isPressed(String key_name) {
		return in.isPressed(key_name);
	}
}
